{% extends '@Admin/adminFramework/base/index.html.twig' %}
{% import '@Admin/adminFramework/loader/base.loader.twig' as loader_base %}
{% import '@Admin/adminFramework/loader/model.loader.twig' as loader_model %}
{% import '@Admin/adminFramework/loader/control.loader.twig' as loader_control %}

{% block content %}

    {#之前#}
    {% block before %}{% endblock %}
<div class="row-fluid">
    <div class="span12">
        <div class="widget">
            <div class="widget-title">
                <h4><i class="icon-reorder"></i>{% block title %}{% endblock %}</h4>
                <span class="tools">
                    <a href="javascript:;" class="icon-chevron-down"></a>
                    <a href="javascript:;" class="icon-remove"></a>
                </span>
            </div>
            <div class="widget-body">

                {% block form %}
                    <form method="post" class="form-horizontal" id = "form" >
                        {% block input %}
                        {% endblock %}
                        <div class="form-actions">
                            {% block button %}
                                {{ loader_control.button('<i class="icon-ok"></i>提交', 'button', 'btn blue', 'style = "margin-left:120px" id = "btn-ok"')  | raw }}
                                {{ loader_control.button('<i class="icon-remove"></i>取消', 'button', 'btn', 'style = "margin-left:20px" id = "btn-clear"') | raw }}
                            {% endblock %}
                        </div>
                    </form>
                {% endblock %}
            </div>
        </div>
    </div>
</div>
{% endblock %}

{% block jquery %}
    {{ parent() }}
    <script>
        $('#btn-clear').click(function () {
            window.location.reload();
        });
    </script>
{% endblock %}